package com.jk.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jk.api.CouponServiceApi;
import com.jk.po.CouponPojo;
import com.jk.service.CouponsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class CouponController implements CouponServiceApi {
    @Autowired
    private CouponsService couponsService;
    @Value("${server.port}")
    private String port;


    @Override
    @ResponseBody
    public IPage<CouponPojo> queryCouList() {
        return couponsService.queryCouList();
    }
}
